package progetto;

import peersim.core.Protocol;

public class NodeStatus implements Protocol {
	
	
	
	private boolean infected;
	
	private boolean immune;
	
	private boolean infectedSO;
	
	private int runInfec;
	
	private boolean fixed;
	
	
	public NodeStatus(String prefix) {
		infected = false;
		immune = false;
		infectedSO = false;
		runInfec = -1;
		fixed = false;
	
	}

	public Object clone() {
        NodeStatus status = null;
        try {
            status = (NodeStatus) super.clone();
        } catch (CloneNotSupportedException e) {
        } 
        
        return status;
    }

	public boolean isInfected() {
		return infected;
	}

	public void setInfected(boolean infected) {
		this.infected = infected;
	}

	public boolean isImmune() {
		return immune;
	}

	public void setImmune(boolean immune) {
		this.immune = immune;
	}

	public int getRunInfec() {
		return runInfec;
	}

	public void setRunInfec(int runInfec) {
		this.runInfec = runInfec;
	}



	public boolean isInfectedSO() {
		return infectedSO;
	}

	public void setInfectedSO(boolean infectedSO) {
		this.infectedSO = infectedSO;
	}

	public void setFixed(boolean b) {
		
		fixed = b;
		
	}

	public boolean isFixed() {
		return fixed;
	}
	
	
	
	
}
